﻿<phone:PhoneApplicationPage 
    x:Class="OnlineVideos.Views.CategoryDetails"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
  xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False" Loaded="PhoneApplicationPage_Loaded">
    
 
            <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource bipivot}"  >
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="80"/>
                </Grid.RowDefinitions>

                <!--TitlePanel contains the name of the application and page title-->
                <!--<StackPanel Orientation="Horizontal" Margin="10,20,10,10" Grid.Row="0">
            <Image Style="{StaticResource DetailPagePivotTitleImage}" x:Name="imgTitle" MouseLeftButtonDown="imgTitle_MouseEnter"/>
            <TextBlock x:Name="tblkVideosTitle"   Style="{StaticResource DetailPagePivotTitle}" TextWrapping="NoWrap"/>
                </StackPanel>-->

                <!--ContentPanel - place additional content here-->
                <Grid x:Name="ContentPanel" Grid.Row="0" Margin="12,0,12,0">
            <phone:Pivot x:Name="pvtVideos" >
                <phone:Pivot.Title>
                    <StackPanel Orientation="Horizontal" Margin="-15,0,0,0">
                        <Image Style="{StaticResource DetailPagePivotTitleImage}" x:Name="imgTitle" MouseLeftButtonDown="imgTitle_MouseEnter"/>
                        <TextBlock x:Name="tblkVideosTitle" TextWrapping="NoWrap" Style="{StaticResource DetailPagePivotTitle}" />
                    </StackPanel>
                </phone:Pivot.Title>
                <phone:Pivot.Foreground>
                    white
                </phone:Pivot.Foreground>
                <phone:PivotItem  x:Name="pvtcat">
                    <Grid>
                    <ListBox x:Name="lbxCatory" Width="470" SelectionChanged="lbxCatory_SelectionChanged" Foreground="White" >
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <Grid Height="200">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="115"/>
                                        <ColumnDefinition Width="350"/>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                    </Grid.RowDefinitions>
                            <Image Grid.Column="0" Grid.Row="0" x:Name="imgMovie" Source="{Binding Image}" VerticalAlignment="Top" Width="100" Height="170"  Visibility="{Binding Isvisible}"/>
                                    <StackPanel Grid.Column="1" Grid.Row="0" Margin="15,0,0,0" Height="210">
                                        <TextBlock Text="{Binding Title}" FontSize="24" FontWeight="Bold" TextWrapping="Wrap" Margin="10,0,0,0"></TextBlock>
                                        <StackPanel Margin="10,10,0,0" Orientation="Horizontal">
                                    <Image Width="139" Height="18" Source="{Binding RatingImage}"  Visibility="{Binding Isvisible}"/>
                                    <TextBlock Text="{Binding RelaseDate}" FontSize="22" Margin="70,0,0,0"  Visibility="{Binding Isvisible}"></TextBlock>
                                        </StackPanel>
                                <TextBlock Text="{Binding Genre}" FontSize="22" Margin="10,10,0,0" Visibility="{Binding GenreIsvisible}"></TextBlock>
                                        <StackPanel Orientation="Horizontal"  Margin="10,10,0,0">
                                    <TextBlock Text="Language: " FontSize="22"  Visibility="{Binding SubTitle, TargetNullValue=Collapsed}"></TextBlock>
                                            <TextBlock Text="{Binding SubTitle}" FontSize="22" TextWrapping="Wrap" Visibility="{Binding Isvisible}"></TextBlock>
                                        </StackPanel>
                                    </StackPanel>
                                </Grid>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                    </Grid>
                </phone:PivotItem>
                <phone:PivotItem x:Name="pvttelugu" Header="telugu" Visibility="Collapsed">
                    <Grid>
                        <ListBox x:Name="lbxTopRated" Width="470" SelectionChanged="lbxTopRated_SelectionChanged" Foreground="White">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <Grid Height="200">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="115"/>
                                            <ColumnDefinition Width="350"/>
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Image Grid.Column="0" Grid.Row="0" x:Name="imgMovie" Source="{Binding Image}" VerticalAlignment="Top" Width="100" Height="170"  Visibility="{Binding Isvisible}"/>
                                        <StackPanel Grid.Column="1" Grid.Row="0" Margin="15,0,0,0" Height="210">
                                            <TextBlock Text="{Binding Title}" FontSize="24" FontWeight="Bold" TextWrapping="Wrap" Margin="10,0,0,0"></TextBlock>
                                            <StackPanel Margin="10,10,0,0" Orientation="Horizontal">
                                                <Image Width="139" Height="18" Source="{Binding RatingImage}"  Visibility="{Binding Isvisible}"/>
                                                <TextBlock Text="{Binding RelaseDate}" FontSize="22" Margin="70,0,0,0"  Visibility="{Binding Isvisible}"></TextBlock>
                                            </StackPanel>
                                            <TextBlock Text="{Binding Genre}" FontSize="22" Margin="10,10,0,0" Visibility="{Binding GenreIsvisible}"></TextBlock>
                                            <StackPanel Orientation="Horizontal"  Margin="10,10,0,0">
                                                <TextBlock Text="Language: " FontSize="22"  Visibility="{Binding SubTitle, TargetNullValue=Collapsed}"></TextBlock>
                                                <TextBlock Text="{Binding SubTitle}" FontSize="22" TextWrapping="Wrap" Visibility="{Binding Isvisible}"></TextBlock>
                                            </StackPanel>
                                        </StackPanel>
                                    </Grid>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                      
                    </Grid>
                </phone:PivotItem>

                <!--Pivot item two-->
                <phone:PivotItem x:Name="pvttamil" Header="tamil" Visibility="Collapsed">
                    <Grid>
                        <ListBox x:Name="lbxRecentlyAdded" Width="470" SelectionChanged="lbxRecentlyAdded_SelectionChanged" Foreground="White">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <Grid Height="200">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="115"/>
                                            <ColumnDefinition Width="350"/>
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Image Grid.Column="0" Grid.Row="0" x:Name="imgMovie" Source="{Binding Image}" VerticalAlignment="Top" Width="100" Height="170"  Visibility="{Binding Isvisible}"/>
                                        <StackPanel Grid.Column="1" Grid.Row="0" Margin="15,0,0,0" Height="210">
                                            <TextBlock Text="{Binding Title}" FontSize="24" FontWeight="Bold" TextWrapping="Wrap" Margin="10,0,0,0"></TextBlock>
                                            <StackPanel Margin="10,10,0,0" Orientation="Horizontal">
                                                <Image Width="139" Height="18" Source="{Binding RatingImage}"  Visibility="{Binding Isvisible}"/>
                                                <TextBlock Text="{Binding RelaseDate}" FontSize="22" Margin="70,0,0,0"  Visibility="{Binding Isvisible}"></TextBlock>
                                            </StackPanel>
                                            <TextBlock Text="{Binding Genre}" FontSize="22" Margin="10,10,0,0" Visibility="{Binding GenreIsvisible}"></TextBlock>
                                            <StackPanel Orientation="Horizontal"  Margin="10,10,0,0">
                                                <TextBlock Text="Language: " FontSize="22"  Visibility="{Binding SubTitle, TargetNullValue=Collapsed}"></TextBlock>
                                                <TextBlock Text="{Binding SubTitle}" FontSize="22" TextWrapping="Wrap" Visibility="{Binding Isvisible}"></TextBlock>
                                            </StackPanel>
                                        </StackPanel>
                                    </Grid>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                       
                    </Grid>
                </phone:PivotItem>
                
            </phone:Pivot>
            <toolkit:PerformanceProgressBar
            VerticalAlignment="Top"
            x:Name="performanceProgressBar"/>
        </Grid>
        <StackPanel Name="adstackpl" Grid.Row="1" Background="Black" Orientation="Vertical" Margin="-12,0,-10,-4"  >
        </StackPanel>
    </Grid>


    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
